<!DOCTYPE html>
<html>
      <head>
            <meta charset="utf-8">
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <title>卡片</title>
            <link rel="stylesheet" href="https://cdn.staticfile.net/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
            <script src="https://cdn.staticfile.net/jquery/3.2.1/jquery.min.js"></script>
            <script src="https://cdn.staticfile.net/popper.js/1.15.0/umd/popper.min.js"></script>
            <script src="https://cdn.staticfile.net/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
      </head>
      <body>
            <!-- 卡片基本样式 -->
            <div class="card">
                  <div class="card-header">头部</div>
                  <div class="card-body">内容</div>
                  <div class="card-footer">底部</div>
            </div>

            <!-- 不同颜色卡片 -->
            <div class="container">
                  <h2>多种颜色的卡片</h2>
                  <div class="card">
                        <div class="card-body">基础卡片</div>
                  </div>
                  <div class="card bg-primary text-white">
                        <div class="card-body">主要卡片</div>
                  </div>
                  <div class="card bg-success text-white">
                        <div class="card-body">成功卡片</div>
                  </div>
                  <div class="card bg-info text-white">
                        <div class="card-body">信息卡片</div>
                  </div>
                  <div class="card bg-warning text-white">
                        <div class="card-body">警告卡片</div>
                  </div>
                  <div class="card bg-danger text-white">
                        <div class="card-body">危险卡片</div>
                  </div>
                  <div class="card bg-secondary text-white">
                        <div class="card-body">次要卡片</div>
                  </div>
                  <div class="card bg-dark text-white">
                        <div class="card-body">深色卡片</div>
                  </div>
                  <div class="card bg-light text-white">
                        <div class="card-body">浅色卡片</div>
                  </div>
            </div>

            <!-- 带标题、文本和链接的卡片 -->
            <div class="card">
                  <div class="card-body">
                        <h4 class="card-title">卡片标题</h4>
                        <p class="card-text">卡片的一些内容；卡片的一些内容；卡片的一些内容；</p>
                        <a href="#" class="card-link">卡片链接1</a>
                        <a href="#" class="card-link">卡片链接2</a>
                  </div>
            </div>

            <!-- 图片卡片 -->
            <div class="card" style="width: 400px;">
                  <img class="card-img-top" src="https://img1.baidu.com/it/u=2697825204,1018748820&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=384" alt="Card image">
                  <div class="card-body">
                        <h4 class="card-title">卡片标题</h4>
                        <p class="card-text">卡片内容</p>
                        <a href="#" class="btn btn-primary">链接1</a>
                  </div>
            </div>

            <div class="card" style="width: 500px;">
                  <img class="card-img-top" src="https://img1.baidu.com/it/u=2697825204,1018748820&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=384" alt="Card image">
                  <div class="card-img-overlay">
                        <h4 class="card-title">卡片标题</h4>
                        <p class="card-text">卡片的一些内容；卡片的一些内容；卡片的一些内容</p>
                        <a href="#" class="btn btn-primary">卡片链接</a>
                  </div>
            </div>
      </body>
</html>